package com.cositas.dulces.lp.model;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Date;

import javax.jdo.annotations.Index;
import javax.persistence.Embedded;
import javax.persistence.Id;

public class ShoppingCart implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8455682642706899470L;
	
	public @Id Long id;
	public @Index String fbuserid;
    public @Embedded Product[] products;
    public String status;
    public Date forDate;
    public String phone;
    public String email;
    public String address;
    public Date lastUpdated = new Date();
    public Boolean pending = Boolean.TRUE;
    
    public ShoppingCart() {
    	super();
	}
    
	@Override
	public String toString() {
		return "ShoppingCart [id=" + id + ", fbuserid=" + fbuserid + ", products=" + Arrays.toString(products)
				+ ", status=" + status + ", forDate=" + forDate + ", phone=" + phone + ", email=" + email
				+ ", lastUpdated=" + lastUpdated + "]";
	}
    
    
	
}
